package com.treetao.union.db.service;

import com.treetao.union.db.model.MallOrderDetail;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
/**
 * <p>
 * 订单明细 服务类
 * </p>
 *
 * @author Dev.M
 * @since 2020-04-11
 */
public interface MallOrderDetailService extends IService<MallOrderDetail> {
	/**
	 * 获取订单下某一sku信息
	 * @param orderno
	 * @param skuId
	 * @return
	 */
	MallOrderDetail getDetail(Long orderno,Long skuId);
	
	/**
	 * 获取该订单所有SKU
	 * @param orderno
	 * @return
	 */
	List<MallOrderDetail> getDetails(Long orderno);
	
	/**
	 * 是否完成所有商品评论
	 * @param orderno
	 * @return
	 */
	boolean finishAllComment(Long orderno);
}
